<?php
/*put parts together*/
/***************************
 * header frontend for website.
 ***************************/
session_start();
require_once( '../config.php'); // config.php在根目录下
require_once( '../includes/class.user.php');
require_once( '../includes/class.profile_manager.php');//add|edit profiles
require_once( '../includes/header.php');

$user = new User();
$pm = new ProfileManager($user->id);

?>
	<!-----------------------顶端------------------------------>
	<div class="top">
		<div class="top_content">
			<!---头像----->
			<a href="#">
	        	<img class="profile" src="../images/picture 077.JPG" alt="Touxiang" />
	        </a>
	        <div>
	    		<span>宠物信息</span>
	    		<?php
	    			$pm->printBrief();
	    		?>
	    	</div>
		</div>
	</div>
    <!-----------------------------左边------------------------->
	<div class='left_column'>
    	
		<!----基本资料----->
        <div class="basic_info">
        	
        	<div>
        		<span>我的主人</span>
        		<ul>
		        	<li>
		        		<a href="#">
		        			<img class="profile" src="avatars/<?php echo $pm->master_details['avatar'];?>" alt="<?php echo $pm->master_details['name']; ?>" />
		        		</a>
		        	</li>
		        	<li>主人：<?php echo $pm->getMasterName(); ?></li>
		        	<li>生日：<?php echo $pm->getMasterDOB(); ?></li>
		        	<li>性别：<?php echo $pm->getMasterSex();?></li>
	        	</ul>
        	
        	</div>
        </div>
	</div>
    
    <!-----------------------------中间和右边------------------------->
	<div class='main_column'>
    
    	<!-------------中间-------------------->
		<div class='main_left'>
        	
            <!-------------中间 上：状态-------------------->
			<div class='update_status'>
			<form action='' method="post">
            	<textarea name="status" class="status" placeholder="你在想什么"></textarea>
				<input class='submit_button' name="submit_status" type='button' value='发布' />
			</form>
			</div>
            
           <!-------------中间 下：新鲜事-------------------->
			<div class='feed'>
				
                <div class="feed_title">
                	新鲜事
                </div>
            
			</div>
            
            
		</div>    	
        <!-------------右边------------------->
		<div class='main_right'>
            <div class="main_right_title">
               猜你喜欢
            </div>
		</div>
	</div>

<script type="text/javascript" src="../scripts/user_home.js"></script>
<?php
require_once(ROOT.'includes/footer.php');
?>
